#ifndef __CONSTRAINT_H
#define __CONSTRAINT_H

#include "sprite.h"

class Constraint
{
	public:
		Constraint(Sprite *a, Sprite *b) : spriteA(a), spriteB(b) {}
		virtual ~Constraint() {}
		virtual void SolveVelocityConstraint() = 0;
		virtual void SolvePositionConstraint() = 0;
		Sprite *spriteA;
		Sprite *spriteB;
	private:
		Constraint(const Constraint&);
		Constraint &operator=(const Constraint&);
};

#endif
